-#.container
  .row
    .col-md-4
    .col-md-4
      %h2{style: "font-size:20px;margin-top:100px;"} 管理登录
      = form_for(resource, as: resource_name, url: session_path(resource_name), html: {style: "border:1px #eee solid;padding:10px;"}) do |f|
        .form-group
          .field
            -#= f.label :email
            %label{for: "admin_email"} 用户名
            %br/
            = f.text_field :username, autofocus: true, class: "form-control"
        .form-group
          .field
            -#= f.label :password
            %label{for: "admin_password"} 密码
            %br/
            = f.password_field :password, autocomplete: "off", class: "form-control"
        -#
          - if devise_mapping.rememberable?
            .field
              = f.check_box :remember_me
              = f.label :remember_me
        .actions
          = f.submit "登录", class: "btn btn-default"
      -#= render "admins/shared/links"
    .col-md-4

.container
  .row
    .col-md-7{style: "text-align:center"}
      .login-left
        = image_tag ufile_public_src_static('login_logo.png'), width: 235
    .col-md-5
      .login-right
        %h2 后台管理员登录
        = form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
          .field
            .form-group
              .input-group
                .input-group-addon
                  %span.glyphicon.glyphicon-user
                = f.text_field :username, autofocus: true, class: "form-control input-lg", placeholder: "请输入管理员账号"
          .field
            .form-group
              .input-group
                .input-group-addon
                  %span.glyphicon.glyphicon-lock
                = f.password_field :password, autocomplete: "off", class: "form-control input-lg", placeholder: "请输入密码"
          - if devise_mapping.rememberable?
            .field
              = f.check_box :remember_me
              -#= f.label :remember_me
              %label 记住用户名
          .actions
            = f.submit "登录"
